package pattern.observer;

import java.util.Observable;
import java.util.Observer;

public class Agent2 implements Observer {
    private double price;
    @Override
    public void update(Observable o, Object arg) {
        double factoryPrice = (Double)arg;
        this.price = factoryPrice * 1.5;
    }

    public double getPrice() {
        return price;
    }
}
